package org.six.background.pojo;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class InshopExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public InshopExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andInidIsNull() {
            addCriterion("inid is null");
            return (Criteria) this;
        }

        public Criteria andInidIsNotNull() {
            addCriterion("inid is not null");
            return (Criteria) this;
        }

        public Criteria andInidEqualTo(Integer value) {
            addCriterion("inid =", value, "inid");
            return (Criteria) this;
        }

        public Criteria andInidNotEqualTo(Integer value) {
            addCriterion("inid <>", value, "inid");
            return (Criteria) this;
        }

        public Criteria andInidGreaterThan(Integer value) {
            addCriterion("inid >", value, "inid");
            return (Criteria) this;
        }

        public Criteria andInidGreaterThanOrEqualTo(Integer value) {
            addCriterion("inid >=", value, "inid");
            return (Criteria) this;
        }

        public Criteria andInidLessThan(Integer value) {
            addCriterion("inid <", value, "inid");
            return (Criteria) this;
        }

        public Criteria andInidLessThanOrEqualTo(Integer value) {
            addCriterion("inid <=", value, "inid");
            return (Criteria) this;
        }

        public Criteria andInidIn(List<Integer> values) {
            addCriterion("inid in", values, "inid");
            return (Criteria) this;
        }

        public Criteria andInidNotIn(List<Integer> values) {
            addCriterion("inid not in", values, "inid");
            return (Criteria) this;
        }

        public Criteria andInidBetween(Integer value1, Integer value2) {
            addCriterion("inid between", value1, value2, "inid");
            return (Criteria) this;
        }

        public Criteria andInidNotBetween(Integer value1, Integer value2) {
            addCriterion("inid not between", value1, value2, "inid");
            return (Criteria) this;
        }

        public Criteria andShopidIsNull() {
            addCriterion("shopid is null");
            return (Criteria) this;
        }

        public Criteria andShopidIsNotNull() {
            addCriterion("shopid is not null");
            return (Criteria) this;
        }

        public Criteria andShopidEqualTo(Integer value) {
            addCriterion("shopid =", value, "shopid");
            return (Criteria) this;
        }

        public Criteria andShopidNotEqualTo(Integer value) {
            addCriterion("shopid <>", value, "shopid");
            return (Criteria) this;
        }

        public Criteria andShopidGreaterThan(Integer value) {
            addCriterion("shopid >", value, "shopid");
            return (Criteria) this;
        }

        public Criteria andShopidGreaterThanOrEqualTo(Integer value) {
            addCriterion("shopid >=", value, "shopid");
            return (Criteria) this;
        }

        public Criteria andShopidLessThan(Integer value) {
            addCriterion("shopid <", value, "shopid");
            return (Criteria) this;
        }

        public Criteria andShopidLessThanOrEqualTo(Integer value) {
            addCriterion("shopid <=", value, "shopid");
            return (Criteria) this;
        }

        public Criteria andShopidIn(List<Integer> values) {
            addCriterion("shopid in", values, "shopid");
            return (Criteria) this;
        }

        public Criteria andShopidNotIn(List<Integer> values) {
            addCriterion("shopid not in", values, "shopid");
            return (Criteria) this;
        }

        public Criteria andShopidBetween(Integer value1, Integer value2) {
            addCriterion("shopid between", value1, value2, "shopid");
            return (Criteria) this;
        }

        public Criteria andShopidNotBetween(Integer value1, Integer value2) {
            addCriterion("shopid not between", value1, value2, "shopid");
            return (Criteria) this;
        }

        public Criteria andInnumIsNull() {
            addCriterion("innum is null");
            return (Criteria) this;
        }

        public Criteria andInnumIsNotNull() {
            addCriterion("innum is not null");
            return (Criteria) this;
        }

        public Criteria andInnumEqualTo(Integer value) {
            addCriterion("innum =", value, "innum");
            return (Criteria) this;
        }

        public Criteria andInnumNotEqualTo(Integer value) {
            addCriterion("innum <>", value, "innum");
            return (Criteria) this;
        }

        public Criteria andInnumGreaterThan(Integer value) {
            addCriterion("innum >", value, "innum");
            return (Criteria) this;
        }

        public Criteria andInnumGreaterThanOrEqualTo(Integer value) {
            addCriterion("innum >=", value, "innum");
            return (Criteria) this;
        }

        public Criteria andInnumLessThan(Integer value) {
            addCriterion("innum <", value, "innum");
            return (Criteria) this;
        }

        public Criteria andInnumLessThanOrEqualTo(Integer value) {
            addCriterion("innum <=", value, "innum");
            return (Criteria) this;
        }

        public Criteria andInnumIn(List<Integer> values) {
            addCriterion("innum in", values, "innum");
            return (Criteria) this;
        }

        public Criteria andInnumNotIn(List<Integer> values) {
            addCriterion("innum not in", values, "innum");
            return (Criteria) this;
        }

        public Criteria andInnumBetween(Integer value1, Integer value2) {
            addCriterion("innum between", value1, value2, "innum");
            return (Criteria) this;
        }

        public Criteria andInnumNotBetween(Integer value1, Integer value2) {
            addCriterion("innum not between", value1, value2, "innum");
            return (Criteria) this;
        }

        public Criteria andInusnameIsNull() {
            addCriterion("inusname is null");
            return (Criteria) this;
        }

        public Criteria andInusnameIsNotNull() {
            addCriterion("inusname is not null");
            return (Criteria) this;
        }

        public Criteria andInusnameEqualTo(String value) {
            addCriterion("inusname =", value, "inusname");
            return (Criteria) this;
        }

        public Criteria andInusnameNotEqualTo(String value) {
            addCriterion("inusname <>", value, "inusname");
            return (Criteria) this;
        }

        public Criteria andInusnameGreaterThan(String value) {
            addCriterion("inusname >", value, "inusname");
            return (Criteria) this;
        }

        public Criteria andInusnameGreaterThanOrEqualTo(String value) {
            addCriterion("inusname >=", value, "inusname");
            return (Criteria) this;
        }

        public Criteria andInusnameLessThan(String value) {
            addCriterion("inusname <", value, "inusname");
            return (Criteria) this;
        }

        public Criteria andInusnameLessThanOrEqualTo(String value) {
            addCriterion("inusname <=", value, "inusname");
            return (Criteria) this;
        }

        public Criteria andInusnameLike(String value) {
            addCriterion("inusname like", value, "inusname");
            return (Criteria) this;
        }

        public Criteria andInusnameNotLike(String value) {
            addCriterion("inusname not like", value, "inusname");
            return (Criteria) this;
        }

        public Criteria andInusnameIn(List<String> values) {
            addCriterion("inusname in", values, "inusname");
            return (Criteria) this;
        }

        public Criteria andInusnameNotIn(List<String> values) {
            addCriterion("inusname not in", values, "inusname");
            return (Criteria) this;
        }

        public Criteria andInusnameBetween(String value1, String value2) {
            addCriterion("inusname between", value1, value2, "inusname");
            return (Criteria) this;
        }

        public Criteria andInusnameNotBetween(String value1, String value2) {
            addCriterion("inusname not between", value1, value2, "inusname");
            return (Criteria) this;
        }

        public Criteria andInidcardIsNull() {
            addCriterion("inidcard is null");
            return (Criteria) this;
        }

        public Criteria andInidcardIsNotNull() {
            addCriterion("inidcard is not null");
            return (Criteria) this;
        }

        public Criteria andInidcardEqualTo(Integer value) {
            addCriterion("inidcard =", value, "inidcard");
            return (Criteria) this;
        }

        public Criteria andInidcardNotEqualTo(Integer value) {
            addCriterion("inidcard <>", value, "inidcard");
            return (Criteria) this;
        }

        public Criteria andInidcardGreaterThan(Integer value) {
            addCriterion("inidcard >", value, "inidcard");
            return (Criteria) this;
        }

        public Criteria andInidcardGreaterThanOrEqualTo(Integer value) {
            addCriterion("inidcard >=", value, "inidcard");
            return (Criteria) this;
        }

        public Criteria andInidcardLessThan(Integer value) {
            addCriterion("inidcard <", value, "inidcard");
            return (Criteria) this;
        }

        public Criteria andInidcardLessThanOrEqualTo(Integer value) {
            addCriterion("inidcard <=", value, "inidcard");
            return (Criteria) this;
        }

        public Criteria andInidcardIn(List<Integer> values) {
            addCriterion("inidcard in", values, "inidcard");
            return (Criteria) this;
        }

        public Criteria andInidcardNotIn(List<Integer> values) {
            addCriterion("inidcard not in", values, "inidcard");
            return (Criteria) this;
        }

        public Criteria andInidcardBetween(Integer value1, Integer value2) {
            addCriterion("inidcard between", value1, value2, "inidcard");
            return (Criteria) this;
        }

        public Criteria andInidcardNotBetween(Integer value1, Integer value2) {
            addCriterion("inidcard not between", value1, value2, "inidcard");
            return (Criteria) this;
        }

        public Criteria andInaddtimeIsNull() {
            addCriterion("inaddtime is null");
            return (Criteria) this;
        }

        public Criteria andInaddtimeIsNotNull() {
            addCriterion("inaddtime is not null");
            return (Criteria) this;
        }

        public Criteria andInaddtimeEqualTo(Date value) {
            addCriterion("inaddtime =", value, "inaddtime");
            return (Criteria) this;
        }

        public Criteria andInaddtimeNotEqualTo(Date value) {
            addCriterion("inaddtime <>", value, "inaddtime");
            return (Criteria) this;
        }

        public Criteria andInaddtimeGreaterThan(Date value) {
            addCriterion("inaddtime >", value, "inaddtime");
            return (Criteria) this;
        }

        public Criteria andInaddtimeGreaterThanOrEqualTo(Date value) {
            addCriterion("inaddtime >=", value, "inaddtime");
            return (Criteria) this;
        }

        public Criteria andInaddtimeLessThan(Date value) {
            addCriterion("inaddtime <", value, "inaddtime");
            return (Criteria) this;
        }

        public Criteria andInaddtimeLessThanOrEqualTo(Date value) {
            addCriterion("inaddtime <=", value, "inaddtime");
            return (Criteria) this;
        }

        public Criteria andInaddtimeIn(List<Date> values) {
            addCriterion("inaddtime in", values, "inaddtime");
            return (Criteria) this;
        }

        public Criteria andInaddtimeNotIn(List<Date> values) {
            addCriterion("inaddtime not in", values, "inaddtime");
            return (Criteria) this;
        }

        public Criteria andInaddtimeBetween(Date value1, Date value2) {
            addCriterion("inaddtime between", value1, value2, "inaddtime");
            return (Criteria) this;
        }

        public Criteria andInaddtimeNotBetween(Date value1, Date value2) {
            addCriterion("inaddtime not between", value1, value2, "inaddtime");
            return (Criteria) this;
        }

        public Criteria andUsidIsNull() {
            addCriterion("usid is null");
            return (Criteria) this;
        }

        public Criteria andUsidIsNotNull() {
            addCriterion("usid is not null");
            return (Criteria) this;
        }

        public Criteria andUsidEqualTo(Integer value) {
            addCriterion("usid =", value, "usid");
            return (Criteria) this;
        }

        public Criteria andUsidNotEqualTo(Integer value) {
            addCriterion("usid <>", value, "usid");
            return (Criteria) this;
        }

        public Criteria andUsidGreaterThan(Integer value) {
            addCriterion("usid >", value, "usid");
            return (Criteria) this;
        }

        public Criteria andUsidGreaterThanOrEqualTo(Integer value) {
            addCriterion("usid >=", value, "usid");
            return (Criteria) this;
        }

        public Criteria andUsidLessThan(Integer value) {
            addCriterion("usid <", value, "usid");
            return (Criteria) this;
        }

        public Criteria andUsidLessThanOrEqualTo(Integer value) {
            addCriterion("usid <=", value, "usid");
            return (Criteria) this;
        }

        public Criteria andUsidIn(List<Integer> values) {
            addCriterion("usid in", values, "usid");
            return (Criteria) this;
        }

        public Criteria andUsidNotIn(List<Integer> values) {
            addCriterion("usid not in", values, "usid");
            return (Criteria) this;
        }

        public Criteria andUsidBetween(Integer value1, Integer value2) {
            addCriterion("usid between", value1, value2, "usid");
            return (Criteria) this;
        }

        public Criteria andUsidNotBetween(Integer value1, Integer value2) {
            addCriterion("usid not between", value1, value2, "usid");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}